package com.cssl.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class DtsGroupOn implements Serializable {
    Integer id;
    /**
     * 关联的订单id
     */
    Integer orderId;
    /**
     * 参与的团购ID，仅当user_type不是1
     */
    Integer grouponId;
    Integer rulesId;
    /**
     * 用户ID
     */
    Integer userId;
    /**
     * creator_user_id
     */
    Integer creatorUserId;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    Date addTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    Date updateTime;
    String shareUrl;
    Integer payed;
    Integer deleted;

    @Override
    public String toString() {
        return "DtsGroupOn{" +
                "id=" + id +
                ", orderId=" + orderId +
                ", grouponId=" + grouponId +
                ", userId=" + userId +
                ", creatorUserId=" + creatorUserId +
                ", addTime=" + addTime +
                ", updateTime=" + updateTime +
                ", shareUrl='" + shareUrl + '\'' +
                ", payed=" + payed +
                ", deleted=" + deleted +
                '}';
    }

    public DtsGroupOn() {
    }

    public DtsGroupOn(Integer id, Integer orderId, Integer grouponId, Integer rulesId, Integer userId, Integer creatorUserId, Date addTime, Date updateTime, String shareUrl, Integer payed, Integer deleted) {
        this.id = id;
        this.orderId = orderId;
        this.grouponId = grouponId;
        this.rulesId = rulesId;
        this.userId = userId;
        this.creatorUserId = creatorUserId;
        this.addTime = addTime;
        this.updateTime = updateTime;
        this.shareUrl = shareUrl;
        this.payed = payed;
        this.deleted = deleted;
    }

    public Integer getRulesId() {
        return rulesId;
    }

    public void setRulesId(Integer rulesId) {
        this.rulesId = rulesId;
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getGrouponId() {
        return grouponId;
    }

    public void setGrouponId(Integer grouponId) {
        this.grouponId = grouponId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getCreatorUserId() {
        return creatorUserId;
    }

    public void setCreatorUserId(Integer creatorUserId) {
        this.creatorUserId = creatorUserId;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getShareUrl() {
        return shareUrl;
    }

    public void setShareUrl(String shareUrl) {
        this.shareUrl = shareUrl;
    }

    public Integer getPayed() {
        return payed;
    }

    public void setPayed(Integer payed) {
        this.payed = payed;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
}
